package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.entity.UserDTO;
import com.isoft.c2team3service2.entity.UserFollowUser;

import java.util.List;

public interface UserFollowUserService extends IService<UserFollowUser> {

    /**
     * 关注用户
     */
    boolean followUser(Integer followedUserId);

    /**
     * 取消关注用户
     */
    boolean unfollowUser(Integer followedUserId);

    /**
     * 检查是否关注了某个用户
     */
    boolean isFollowingUser(Integer followedUserId);

    /**
     * 获取当前用户关注的所有用户
     */
    List<UserDTO> getFollowedUsers();

    /**
     * 获取当前用户的所有粉丝
     */
    List<UserDTO> getFans();
}
